package com.lx.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("bz_menu")
public class Menu {
    @TableId(value = "menu_id",type = IdType.AUTO)
    private Integer menuId;
    @TableField("parent_id")
    private Integer parentId;
    private String name;
    private String url;//菜单URL
    private String perms;//授权(多个用逗号分隔，如：user:list,user:create)
    private Integer type;//类型   0：目录   1：菜单   2：按钮
    private String icon;//菜单图标
    @TableField("order_num")
    private Integer orderNum;//排序
    @TableField(exist = false)
    private List<Menu> sonMenu;//二级菜单
//    @TableField(exist = false)
//    private List<Menu> three;//三级菜单
}
